package com.aica.constant;


import com.aica.vo.ResultVo;

/**
 * @author yly
 * @date 2021/2/8 18:56
 */
public class ResultConstant {
    public static final ResultVo<Object> OK = new ResultVo<>(200, "OK");
    public static final ResultVo<Object> LOGIN_ERROR = new ResultVo<>(401, "未登录");
    public static final ResultVo<Object> NOT_FOUND = new ResultVo<>(404, "未找到");
    public static final ResultVo<Object> SYSTEM_ERROR = new ResultVo<>(500, "内部服务器错误");
    public static final ResultVo<Object> SYSTEM_FIELD_ERROR = new ResultVo<>(500, "请求参数中使用注解校验格式的字段名字不在预测范围之内，请及时通知开发者修改");

    public static final ResultVo<Object> SUCCESS_AND_TOKEN_EXPIRE = new ResultVo<>(200, "修改成功，请重新登录");

    public static final ResultVo<Object> PERMISSION_DENIED = new ResultVo<>(1000, "权限不足");
    public static final ResultVo<Object> TOKEN_EXPIRE = new ResultVo<>(1001, "密匙过期");
    public static final ResultVo<Object> CODE_ERROR = new ResultVo<>(1002, "账号或密码错误");
    public static final ResultVo<Object> USER_NAME_EXIST = new ResultVo<>(1003, "用户名已存在");
    public static final ResultVo<Object> USER_NAME_NON_EXIST = new ResultVo<>(1004, "用户名未使用");
    public static final ResultVo<Object> EMAIL_EXIST = new ResultVo<>(1005, "该邮箱已注册账号");

    public static final ResultVo<Object> EMAIL_FORMAT_ERROR = new ResultVo<>(3000, "邮箱格式错误");
    public static final ResultVo<Object> USER_NAME_FORMAT_ERROR = new ResultVo<>(3001, "用户名格式不合法");
    public static final ResultVo<Object> PASSWORD_FORMAT_ERROR = new ResultVo<>(3002, "密码格式不合法");
    public static final ResultVo<Object> EMAIL_CODE_BAD_OR_EMPTY = new ResultVo<>(3003, "验证码错误或未发送");
    public static final ResultVo<Object> PHONE_NUMBER_FORMAT_ERROR = new ResultVo<>(3004, "联系电话格式不合法");


    public static final ResultVo<Object> FILE_UPLOAD_FALSE = new ResultVo<>(4000, "文件上传失败，请重新上传");

    public static final ResultVo<Object> HAVE_GOT_UP = new ResultVo<>(5000, "当天已经进行了起床打卡。如有需要，请在睡眠打卡后或等待第二天再进行起床打卡");
    public static final ResultVo<Object> HAVE_SLEEP = new ResultVo<>(5001, "当天已经进行了睡眠打卡。如有需要，请在起床打卡后或等待第二天再进行睡眠打卡");
    public static final ResultVo<Object> DO_NOT_HAVE_PUNCH_IN_RECORD = new ResultVo<>(5003, "无打卡记录");

}

